package com.lqcoder.toolset;

import com.lqcoder.toolset.quartz.MyJob;
import com.lqcoder.toolset.quartz.util.QuartUtil;
import com.lqcoder.toolset.quartz.util.QuartzManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class ToolsetApplication {
    public static void main(String[] args) {
        SpringApplication.run(ToolsetApplication.class, args);
        try {
            QuartUtil.addJob("定时任务1","test","定时任务触发器1","testTrigger",MyJob.class,"0/5 * * * * ?");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
